package com.efast.cafe.portal.service.api.impl;


import com.efast.cafe.portal.bean.api.ApiInputParamQueryBean;
import com.efast.cafe.portal.dao.api.ApiInputParamDao;
import com.efast.cafe.portal.entity.api.ApiInputParam;
import com.efast.cafe.portal.service.api.IApiInputParamService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>Service接口实现类</p>
 * <p>Table: api_input_param - 输入参数描述</p>
 *
 * @since 2017-01-16 06:21:01
 */
@Service
@Transactional
public class ApiInputParamServiceImpl implements IApiInputParamService{
	@Autowired
	private ApiInputParamDao apiInputParamDao;
	
	
	
	/**
	 * 查询uri参数列表 不分页
	 */
	@Override
	public ApiInputParamQueryBean queryPageList(ApiInputParamQueryBean queryBean) {
		queryBean.setResultList(apiInputParamDao.queryPageList(queryBean));
		queryBean.setTotalRows(apiInputParamDao.queryPageCount(queryBean));
		return queryBean;
	}

	/**
	 *  新增uri参数
	 */
	@Override
	public Integer addParam(ApiInputParam apiInputParam) {
		return apiInputParamDao.addParam(apiInputParam);
	}

	/**
	 * 编辑uri参数
	 */
	@Override
	public void editParam(ApiInputParam apiInputParam) {
		apiInputParamDao.editParam(apiInputParam);
	}

	/**
	 * 删除uri参数
	 */
	@Override
	public void delParam(Integer paramId) {
		apiInputParamDao.delParam(paramId);
	}
}